package com.appspot.menox3secandroid2011.controller;

import java.util.Map;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.util.RequestMap;

public class WorkerDetailController extends Controller {

    @Override
    public Navigation run() throws Exception {
        Map<String, Object> input = new RequestMap(request);
        String jspName = "WorkerDetail.jsp";

        if(input.get("viewNo") != null){
            if(input.get("viewNo").equals("0")){
                jspName = "/WorkerList";
                return redirect(jspName);
            }
        }
        return forward(jspName);
    }
}
